package net.btd.city;

import javax.microedition.lcdui.ItemCommandListener;
import javax.microedition.lcdui.StringItem;


public class WAYMenu extends StringItem
{

    private int _fldif;
    private int a;

    public WAYMenu(String s, int i, ItemCommandListener itemcommandlistener, int j)
    {

        super("", s + "\n");
//        System.out.println("override1: s:"+s+" i: "+i+" j:"+j+"");
        _fldif = -1;
        a = 0;
        _fldif = i;
        setLayout(513);
        addCommand(CONST.d);
        setItemCommandListener(itemcommandlistener);
        a = j;

    }

    public WAYMenu(String s, int i, ItemCommandListener itemcommandlistener)
    {
        super("", s + " ");
//        System.out.println("override2: s:"+s+"i: "+i);
        _fldif = -1;
        a = 0;
        _fldif = i;
        setLayout(1);
        addCommand(CONST.d);//(Go,8,1)
        setItemCommandListener(itemcommandlistener);
        a = a;
    }

    public int a()
    {
        return _fldif;
    }

    public int _mthif()
    {
        return a;
    }
}
